<form (ngSubmit)="submitForm()" [formGroup]="validateForm" class="login-form" nz-form>
    <nz-form-item>
        <nz-form-control>
            <nz-input-group nzPrefixIcon="anticon anticon-lock">
                <input [(ngModel)]="user.password" formControlName="password"
                       nz-input
                       placeholder="请输入管理员密码"
                       type="password">
            </nz-input-group>
            <nz-form-explain
                *ngIf="validateForm.get('password').dirty && validateForm.get('password').errors">
                请输入管理员密码！
            </nz-form-explain>
        </nz-form-control>
    </nz-form-item>
    <span *ngIf="errorMessage" class="errorMessage">{{errorMessage}}</span>
    <nz-form-item class="last-item">
        <nz-form-control>
            <button (click)="doLogin()"
                    [nzType]="'primary'"
                    class="login-form-button" nz-button>创建管理员
            </button>
        </nz-form-control>
    </nz-form-item>
</form>
